package com.qiang.controller;

import com.qiang.service.UserService;
import com.qiang.util.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 * User: zhuhongqiang
 * Create: 2018/9/3 10:37
 */
@RequestMapping("interface")
@RestController
public class InterfaceController {
    private  static final Logger logger = LoggerFactory.getLogger(InterfaceController.class);

    @Autowired
    UserService userService;

    @RequestMapping("version")
    public ResultEntity version(){
        return new ResultEntity("hello");
    }

    @RequestMapping("check")
    public ResultEntity check(){
        return new  ResultEntity(userService.hello());
    }

}
